You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
\\for _, k in ipairs(zi_required) do assert(zi[k] ~= nil, k) end
1842
-
\\for _, k in ipairs({"command","tool","keybinding","provider","event","action"}) do assert(type(zi.define[k]) == "function", k) end
1843
-
\\for _, k in ipairs({"encode","decode"}) do assert(type(zi.json[k]) == "function", k) end
1844
-
\\for _, k in ipairs({"object","string","number","integer","boolean","array","enum"}) do assert(type(zi.schema[k]) == "function", k) end
1845
-
\\for _, k in ipairs({"schema","version","fragment","span","line","text","markdown","group","marker","step","is_fragment","validate","to_markdown"}) do assert(zi.doc[k] ~= nil, "doc." .. k) end
1846
-
\\for _, k in ipairs({"command","tool","provider","unprovider","on","action","keybinding","system","spawn","job"}) do assert(zi[k] == nil, "old zi." .. k) end
1847
-
\\assert_error(function() zi.define.command({ name = "bad", desc = "bad", handler = function() end }) end)
1848
-
\\assert_error(function() zi.define.tool({ name = "bad", description = "bad", parameters = {}, execute = function() end }) end)
1849
-
\\assert_error(function() zi.define.keybinding({ id = "bad", key = "f8", handler = function() end }) end)
\\ for _, path in ipairs({"cwd","binding","extension","send_user_message","send_message","append_entry","has_pending_messages"}) do assert(ctx[path] == nil, path) end
1859
-
\\ assert(ctx.ai.stream == nil)
1860
-
\\ assert(ctx.events.on == nil)
1861
-
\\ assert(ctx.control.shutdown == nil)
1862
-
\\ assert(ctx.ui.render == nil and ctx.ui.clear == nil and ctx.ui.frame == nil and ctx.ui.input == nil and ctx.ui.progress == nil)
1863
-
\\ assert(ctx.ui.view.patch == nil)
1864
-
\\ _v4_step = "caps"
1865
-
\\ local caps = ctx.capabilities()
1866
-
\\ for _, k in ipairs({"ui","composer","surface","process","ai","agent","session","state","models","keybinding"}) do assert(type(caps[k]) == "boolean", k) end
1867
-
\\ assert(caps.input == nil and caps.shutdown == nil)
1868
-
\\ local ui_caps = ctx.ui.capabilities()
1869
-
\\ for _, k in ipairs({"view","notify","progress","surface","focus","color","markdown","ansi"}) do assert(type(ui_caps[k]) == "boolean", k) end
1870
-
\\ assert(ui_caps.input == nil)
1871
-
\\ _v4_step = "positive ui"
1872
-
\\ ctx.ui.view.set({ id = "panel", slot = "overlay", root = { type = "view", style = { gap = 1 }, children = { { type = "text", text = "ok" } } } })
0 commit comments