@inf-monkeys-tech/monkeys-cli 0.12.29 → 0.12.30

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,13 @@
1
+ import { LocalCommand } from '../../../config/local-command.js';
2
+ export default class DataFilterList extends LocalCommand {
3
+ static description: string;
4
+ static flags: {
5
+ limit: import("@oclif/core/interfaces").OptionFlag<number, import("@oclif/core/interfaces").CustomOptions>;
6
+ output: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
7
+ subscription: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
8
+ team: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
9
+ thread: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
10
+ };
11
+ run(): Promise<void>;
12
+ }
13
+ //# sourceMappingURL=list.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../../src/commands/data/filter/list.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAmB,MAAM,kCAAkC,CAAC;AAIjF,MAAM,CAAC,OAAO,OAAO,cAAe,SAAQ,YAAY;IACtD,OAAgB,WAAW,SAAoE;IAC/F,OAAgB,KAAK;QACnB,KAAK;QACL,MAAM;QACN,YAAY;QACZ,IAAI;QACJ,MAAM;MACN;IAEI,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC,CAUzB;CACF"}
@@ -0,0 +1,26 @@
1
+ import { Flags } from '@oclif/core';
2
+ import { LocalCommand, localOutputFlag } from '../../../config/local-command.js';
3
+ import { FilterViewClient } from '../../../data/filter-view/client.js';
4
+ import { loadSemanticRuntime } from '../../../semantic/runtime.js';
5
+ export default class DataFilterList extends LocalCommand {
6
+ static description = 'List the filter views recorded against a Thread, newest first.';
7
+ static flags = {
8
+ limit: Flags.integer({ default: 50, summary: 'Maximum number of views to return' }),
9
+ output: localOutputFlag,
10
+ subscription: Flags.string({ summary: 'Subscription name' }),
11
+ team: Flags.string({ summary: 'Team context' }),
12
+ thread: Flags.string({ required: true, summary: 'Thread ID' }),
13
+ };
14
+ async run() {
15
+ const { flags } = await this.parse(DataFilterList);
16
+ await this.emit('data filter list', flags.output, async () => {
17
+ const runtime = await loadSemanticRuntime({
18
+ ...(flags.team ? { team: flags.team } : {}),
19
+ ...(flags.subscription ? { subscription: flags.subscription } : {}),
20
+ });
21
+ const items = await new FilterViewClient(runtime).list(flags.thread, flags.limit);
22
+ return { threadId: flags.thread, returned: items.length, items };
23
+ });
24
+ }
25
+ }
26
+ //# sourceMappingURL=list.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list.js","sourceRoot":"","sources":["../../../../src/commands/data/filter/list.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACpC,OAAO,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AACjF,OAAO,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAC;AACvE,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAEnE,MAAM,CAAC,OAAO,OAAO,cAAe,SAAQ,YAAY;IACtD,MAAM,CAAU,WAAW,GAAG,gEAAgE,CAAC;IAC/F,MAAM,CAAU,KAAK,GAAG;QACtB,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,OAAO,EAAE,mCAAmC,EAAE,CAAC;QACnF,MAAM,EAAE,eAAe;QACvB,YAAY,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,mBAAmB,EAAE,CAAC;QAC5D,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,cAAc,EAAE,CAAC;QAC/C,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,WAAW,EAAE,CAAC;KAC/D,CAAC;IAEF,KAAK,CAAC,GAAG;QACP,MAAM,EAAE,KAAK,EAAE,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC;QACnD,MAAM,IAAI,CAAC,IAAI,CAAC,kBAAkB,EAAE,KAAK,CAAC,MAAM,EAAE,KAAK,IAAI,EAAE;YAC3D,MAAM,OAAO,GAAG,MAAM,mBAAmB,CAAC;gBACxC,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;gBAC3C,GAAG,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC,CAAC,EAAE,YAAY,EAAE,KAAK,CAAC,YAAY,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;aACpE,CAAC,CAAC;YACH,MAAM,KAAK,GAAG,MAAM,IAAI,gBAAgB,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;YAClF,OAAO,EAAE,QAAQ,EAAE,KAAK,CAAC,MAAM,EAAE,QAAQ,EAAE,KAAK,CAAC,MAAM,EAAE,KAAK,EAAE,CAAC;QACnE,CAAC,CAAC,CAAC;IACL,CAAC;CACF"}
@@ -0,0 +1,15 @@
1
+ import { LocalCommand } from '../../../config/local-command.js';
2
+ export default class DataFilterRerun extends LocalCommand {
3
+ static args: {
4
+ viewId: import("@oclif/core/interfaces").Arg<string, Record<string, unknown>>;
5
+ };
6
+ static description: string;
7
+ static flags: {
8
+ limit: import("@oclif/core/interfaces").OptionFlag<number | undefined, import("@oclif/core/interfaces").CustomOptions>;
9
+ output: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
10
+ subscription: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
11
+ team: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
12
+ };
13
+ run(): Promise<void>;
14
+ }
15
+ //# sourceMappingURL=rerun.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rerun.d.ts","sourceRoot":"","sources":["../../../../src/commands/data/filter/rerun.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAmB,MAAM,kCAAkC,CAAC;AAIjF,MAAM,CAAC,OAAO,OAAO,eAAgB,SAAQ,YAAY;IACvD,OAAgB,IAAI;QAAK,MAAM;MAAmE;IAClG,OAAgB,WAAW,SAAuD;IAClF,OAAgB,KAAK;QACnB,KAAK;QACL,MAAM;QACN,YAAY;QACZ,IAAI;MACJ;IAEI,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC,CAUzB;CACF"}
@@ -0,0 +1,26 @@
1
+ import { Args, Flags } from '@oclif/core';
2
+ import { LocalCommand, localOutputFlag } from '../../../config/local-command.js';
3
+ import { FilterViewClient } from '../../../data/filter-view/client.js';
4
+ import { loadSemanticRuntime } from '../../../semantic/runtime.js';
5
+ export default class DataFilterRerun extends LocalCommand {
6
+ static args = { viewId: Args.string({ description: 'Filter view ID', required: true }) };
7
+ static description = 'Re-run a stored filter view against current data.';
8
+ static flags = {
9
+ limit: Flags.integer({ summary: 'Return at most this many rows' }),
10
+ output: localOutputFlag,
11
+ subscription: Flags.string({ summary: 'Subscription name' }),
12
+ team: Flags.string({ summary: 'Team context' }),
13
+ };
14
+ async run() {
15
+ const { args, flags } = await this.parse(DataFilterRerun);
16
+ await this.emit('data filter rerun', flags.output, async () => {
17
+ const runtime = await loadSemanticRuntime({
18
+ ...(flags.team ? { team: flags.team } : {}),
19
+ ...(flags.subscription ? { subscription: flags.subscription } : {}),
20
+ });
21
+ const result = await new FilterViewClient(runtime).rerun(args.viewId, flags.limit);
22
+ return { viewId: result.view?.id, title: result.view?.title, total: result.total, items: result.items };
23
+ });
24
+ }
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IAAI,EAAE,KAAK,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;gBAC3C,GAAG,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC,CAAC,EAAE,YAAY,EAAE,KAAK,CAAC,YAAY,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;aACpE,CAAC,CAAC;YACH,MAAM,MAAM,GAAG,MAAM,IAAI,gBAAgB,CAAC,OAAO,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;YACnF,OAAO,EAAE,MAAM,EAAE,MAAM,CAAC,IAAI,EAAE,EAAE,EAAE,KAAK,EAAE,MAAM,CAAC,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,CAAC,KAAK,EAAE,KAAK,EAAE,MAAM,CAAC,KAAK,EAAE,CAAC;QAC1G,CAAC,CAAC,CAAC;IACL,CAAC;CACF"}
@@ -0,0 +1,27 @@
1
+ import { LocalCommand } from '../../../config/local-command.js';
2
+ /**
3
+ * Run a filter-view schema: execute it, record it, return the rows.
4
+ *
5
+ * The schema is the agent's own output — filter, sort and display as JSON —
6
+ * which is why this validates server-side and reports the reason instead of
7
+ * accepting it silently. `--no-persist` runs a schema without leaving a record,
8
+ * for a schema still being shaped.
9
+ */
10
+ export default class DataFilterRun extends LocalCommand {
11
+ static description: string;
12
+ static flags: {
13
+ 'schema-file': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
14
+ 'schema-json': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
15
+ limit: import("@oclif/core/interfaces").OptionFlag<number | undefined, import("@oclif/core/interfaces").CustomOptions>;
16
+ message: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
17
+ 'no-persist': import("@oclif/core/interfaces").BooleanFlag<boolean>;
18
+ output: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
19
+ run: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
20
+ subscription: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
21
+ team: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
22
+ thread: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
23
+ title: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
24
+ };
25
+ run(): Promise<void>;
26
+ }
27
+ //# sourceMappingURL=run.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"run.d.ts","sourceRoot":"","sources":["../../../../src/commands/data/filter/run.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAmB,MAAM,kCAAkC,CAAC;AAMjF;;;;;;;GAOG;AACH,MAAM,CAAC,OAAO,OAAO,aAAc,SAAQ,YAAY;IACrD,OAAgB,WAAW,SAAkG;IAC7H,OAAgB,KAAK;QACnB,aAAa;QACb,aAAa;QACb,KAAK;QACL,OAAO;QACP,YAAY;QACZ,MAAM;QACN,GAAG;QACH,YAAY;QACZ,IAAI;QACJ,MAAM;QACN,KAAK;MACL;IAEI,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC,CAkCzB;CACF"}
@@ -0,0 +1,66 @@
1
+ import { Flags } from '@oclif/core';
2
+ import { LocalCommand, localOutputFlag } from '../../../config/local-command.js';
3
+ import { readOptionalJson, requireJsonObject } from '../../../data/command.js';
4
+ import { FilterViewClient } from '../../../data/filter-view/client.js';
5
+ import { CliError, EXIT_CODES } from '../../../errors/cli-error.js';
6
+ import { loadSemanticRuntime } from '../../../semantic/runtime.js';
7
+ /**
8
+ * Run a filter-view schema: execute it, record it, return the rows.
9
+ *
10
+ * The schema is the agent's own output — filter, sort and display as JSON —
11
+ * which is why this validates server-side and reports the reason instead of
12
+ * accepting it silently. `--no-persist` runs a schema without leaving a record,
13
+ * for a schema still being shaped.
14
+ */
15
+ export default class DataFilterRun extends LocalCommand {
16
+ static description = 'Run a filter-view schema against an Ontology, record the view, and return the matching rows.';
17
+ static flags = {
18
+ 'schema-file': Flags.string({ exclusive: ['schema-json'], summary: 'Filter-view schema JSON file' }),
19
+ 'schema-json': Flags.string({ exclusive: ['schema-json'], summary: 'Filter-view schema JSON Object' }),
20
+ limit: Flags.integer({ summary: 'Return at most this many rows (the schema limit still applies)' }),
21
+ message: Flags.string({ summary: 'Message that produced the view' }),
22
+ 'no-persist': Flags.boolean({ default: false, summary: 'Execute without recording the view' }),
23
+ output: localOutputFlag,
24
+ run: Flags.string({ summary: 'Run ID the view belongs to' }),
25
+ subscription: Flags.string({ summary: 'Subscription name' }),
26
+ team: Flags.string({ summary: 'Team context; required when the Subscription has no default Team' }),
27
+ thread: Flags.string({ required: true, summary: 'Thread the view belongs to' }),
28
+ title: Flags.string({ summary: 'View title shown in the drawer' }),
29
+ };
30
+ async run() {
31
+ const { flags } = await this.parse(DataFilterRun);
32
+ await this.emit('data filter run', flags.output, async () => {
33
+ const raw = await readOptionalJson(flags['schema-json'], flags['schema-file']);
34
+ if (raw === undefined) {
35
+ throw new CliError('A filter-view schema is required: pass --schema-file or --schema-json.', {
36
+ code: 'DATA_FILTER_SCHEMA_REQUIRED',
37
+ exitCode: EXIT_CODES.validation,
38
+ safeDetails: { requestState: 'not_sent' },
39
+ });
40
+ }
41
+ const schema = requireJsonObject(raw, 'Filter-view schema');
42
+ const runtime = await loadSemanticRuntime({
43
+ ...(flags.team ? { team: flags.team } : {}),
44
+ ...(flags.subscription ? { subscription: flags.subscription } : {}),
45
+ });
46
+ const result = await new FilterViewClient(runtime).run({
47
+ threadId: flags.thread,
48
+ schema,
49
+ ...(flags.title ? { title: flags.title } : {}),
50
+ ...(flags.message ? { messageId: flags.message } : {}),
51
+ ...(flags.run ? { runId: flags.run } : {}),
52
+ ...(flags.limit ? { limit: flags.limit } : {}),
53
+ ...(flags['no-persist'] ? { persist: false } : {}),
54
+ });
55
+ return {
56
+ viewId: result.view?.id,
57
+ title: result.view?.title,
58
+ status: result.view?.status,
59
+ total: result.total,
60
+ columns: result.columns,
61
+ items: result.items,
62
+ };
63
+ });
64
+ }
65
+ }
66
+ //# sourceMappingURL=run.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"run.js","sourceRoot":"","sources":["../../../../src/commands/data/filter/run.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACpC,OAAO,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AACjF,OAAO,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAC/E,OAAO,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAC;AACvE,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAEnE;;;;;;;GAOG;AACH,MAAM,CAAC,OAAO,OAAO,aAAc,SAAQ,YAAY;IACrD,MAAM,CAAU,WAAW,GAAG,8FAA8F,CAAC;IAC7H,MAAM,CAAU,KAAK,GAAG;QACtB,aAAa,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,SAAS,EAAE,CAAC,aAAa,CAAC,EAAE,OAAO,EAAE,8BAA8B,EAAE,CAAC;QACpG,aAAa,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,SAAS,EAAE,CAAC,aAAa,CAAC,EAAE,OAAO,EAAE,gCAAgC,EAAE,CAAC;QACtG,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,EAAE,OAAO,EAAE,gEAAgE,EAAE,CAAC;QACnG,OAAO,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,gCAAgC,EAAE,CAAC;QACpE,YAAY,EAAE,KAAK,CAAC,OAAO,C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OAAO,EAAE,MAAM,CAAC,OAAO;gBACvB,KAAK,EAAE,MAAM,CAAC,KAAK;aACpB,CAAC;QACJ,CAAC,CAAC,CAAC;IACL,CAAC;CACF"}
@@ -0,0 +1,48 @@
1
+ import { type SemanticRuntime } from '../../semantic/runtime.js';
2
+ export interface FilterViewRecord {
3
+ id: string;
4
+ threadId: string;
5
+ messageId?: string | null;
6
+ runId?: string | null;
7
+ title: string;
8
+ status: string;
9
+ resultCount?: number | null;
10
+ schema: unknown;
11
+ targetOntologyId: string;
12
+ targetAssetType: string;
13
+ createdTimestamp: number;
14
+ }
15
+ export interface FilterRunResult {
16
+ view: FilterViewRecord;
17
+ items: unknown[];
18
+ total: number;
19
+ columns: string[];
20
+ }
21
+ /**
22
+ * Client for the agent-view ontology.
23
+ *
24
+ * `run` is one call on purpose: it executes the schema and records the view in
25
+ * the same request, so the schema that produced these rows is exactly the one
26
+ * stored. Splitting it into create-then-query would let the two drift apart and
27
+ * leave a view that no longer describes what the user saw.
28
+ */
29
+ export declare class FilterViewClient {
30
+ private readonly runtime;
31
+ constructor(runtime: SemanticRuntime);
32
+ run(input: {
33
+ threadId: string;
34
+ schema: Record<string, unknown>;
35
+ title?: string;
36
+ messageId?: string;
37
+ runId?: string;
38
+ limit?: number;
39
+ persist?: boolean;
40
+ }): Promise<FilterRunResult>;
41
+ list(threadId: string, limit?: number): Promise<FilterViewRecord[]>;
42
+ rerun(viewId: string, limit?: number): Promise<{
43
+ view: FilterViewRecord;
44
+ items: unknown[];
45
+ total: number;
46
+ }>;
47
+ }
48
+ //# sourceMappingURL=client.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../src/data/filter-view/client.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4D,KAAK,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAG3H,MAAM,WAAW,gBAAgB;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;IAC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AAE,MAAM,CAAA;KAAE,CAAC,CAUhH;CACF"}
@@ -0,0 +1,60 @@
1
+ import { requestSemantic, semanticResponseError, unwrapServerData } from '../../semantic/runtime.js';
2
+ import { AGENT_FILTER_VIEW_DEFINITIONS } from './definitions.js';
3
+ /**
4
+ * Client for the agent-view ontology.
5
+ *
6
+ * `run` is one call on purpose: it executes the schema and records the view in
7
+ * the same request, so the schema that produced these rows is exactly the one
8
+ * stored. Splitting it into create-then-query would let the two drift apart and
9
+ * leave a view that no longer describes what the user saw.
10
+ */
11
+ export class FilterViewClient {
12
+ runtime;
13
+ constructor(runtime) {
14
+ this.runtime = runtime;
15
+ }
16
+ async run(input) {
17
+ const result = await requestSemantic(this.runtime, AGENT_FILTER_VIEW_DEFINITIONS.run, {
18
+ body: {
19
+ schema: input.schema,
20
+ ...(input.title ? { title: input.title } : {}),
21
+ ...(input.messageId ? { messageId: input.messageId } : {}),
22
+ ...(input.runId ? { runId: input.runId } : {}),
23
+ ...(input.limit ? { limit: input.limit } : {}),
24
+ ...(input.persist === false ? { persist: false } : {}),
25
+ },
26
+ pathParameters: { threadId: input.threadId },
27
+ });
28
+ try {
29
+ return unwrapServerData(result.response.data);
30
+ }
31
+ catch (cause) {
32
+ throw semanticResponseError(this.runtime, AGENT_FILTER_VIEW_DEFINITIONS.run, cause, 'sent');
33
+ }
34
+ }
35
+ async list(threadId, limit) {
36
+ const result = await requestSemantic(this.runtime, AGENT_FILTER_VIEW_DEFINITIONS.list, {
37
+ pathParameters: { threadId },
38
+ query: limit ? { limit } : {},
39
+ });
40
+ try {
41
+ return unwrapServerData(result.response.data) || [];
42
+ }
43
+ catch (cause) {
44
+ throw semanticResponseError(this.runtime, AGENT_FILTER_VIEW_DEFINITIONS.list, cause, 'read_failed');
45
+ }
46
+ }
47
+ async rerun(viewId, limit) {
48
+ const result = await requestSemantic(this.runtime, AGENT_FILTER_VIEW_DEFINITIONS.rerun, {
49
+ body: limit ? { limit } : {},
50
+ pathParameters: { viewId },
51
+ });
52
+ try {
53
+ return unwrapServerData(result.response.data);
54
+ }
55
+ catch (cause) {
56
+ throw semanticResponseError(this.runtime, AGENT_FILTER_VIEW_DEFINITIONS.rerun, cause, 'read_failed');
57
+ }
58
+ }
59
+ }
60
+ //# sourceMappingURL=client.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"client.js","sourceRoot":"","sources":["../../../src/data/filter-view/client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,qBAAqB,EAAE,gBAAgB,EAAwB,MAAM,2BAA2B,CAAC;AAC3H,OAAO,EAAE,6BAA6B,EAAE,MAAM,kBAAkB,CAAC;AAuBjE;;;;;;;GAOG;AACH,MAAM,OAAO,gBAAgB;IACE,OAAO;IAApC,YAA6B,OAAwB;uBAAxB,OAAO;IAAoB,CAAC;IAEzD,KAAK,CAAC,GAAG,CAAC,KAQT;QACC,MAAM,MAAM,GAAG,MAAM,eAAe,CAAU,IAAI,CAAC,OAAO,EAAE,6BAA6B,CAAC,GAAG,EAAE;YAC7F,IAAI,EAAE;gBACJ,MAAM,EAAE,KAAK,CAAC,MAAM;gBACpB,GAAG,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,KAAK,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;gBAC9C,GAAG,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,SAAS,EAAE,KAAK,CAAC,SAAS,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;gBAC1D,GAAG,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,KAAK,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;gBAC9C,GAAG,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,KAAK,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;gBAC9C,GAAG,CAAC,KAAK,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5B,cAAc,EAAE,EAAE,MAAM,EAAE;SAC3B,CAAC,CAAC;QACH,IAAI,CAAC;YACH,OAAO,gBAAgB,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAgE,CAAC;QAC/G,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,MAAM,qBAAqB,CAAC,IAAI,CAAC,OAAO,EAAE,6BAA6B,CAAC,KAAK,EAAE,KAAK,EAAE,aAAa,CAAC,CAAC;QACvG,CAAC;IACH,CAAC;CACF"}
@@ -0,0 +1,7 @@
1
+ import type { SemanticCommandDefinition } from '../../api-operation/types.js';
2
+ export declare const AGENT_FILTER_VIEW_DEFINITIONS: {
3
+ readonly run: SemanticCommandDefinition;
4
+ readonly list: SemanticCommandDefinition;
5
+ readonly rerun: SemanticCommandDefinition;
6
+ };
7
+ //# sourceMappingURL=definitions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"definitions.d.ts","sourceRoot":"","sources":["../../../src/data/filter-view/definitions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,8BAA8B,CAAC;AA4B9E,eAAO,MAAM,6BAA6B;aACxC,GAAG;aACH,IAAI;aACJ,KAAK;CACG,CAAC"}
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Filter-view commands.
3
+ *
4
+ * These reach monkeys-server, not Data Server: the agent-view ontology, its
5
+ * provisioning and the request scope a write needs all live there. Data Server
6
+ * only ever sees the canonical query the schema compiles to.
7
+ */
8
+ function definition(id, command, method, pathTemplate, risk) {
9
+ return {
10
+ apiBindings: [
11
+ { adapter: 'agent-filter-view-v1', apiOperationId: id },
12
+ { adapter: 'agent-filter-view-v1', legacyBuiltinContract: true, method, pathTemplate },
13
+ ],
14
+ command: ['data', 'filter', ...command],
15
+ id,
16
+ risk,
17
+ };
18
+ }
19
+ export const AGENT_FILTER_VIEW_DEFINITIONS = {
20
+ run: definition('studio.agent.threadViews.run', ['run'], 'POST', '/api/studio/agents/threads/{threadId}/views', 'bounded-write'),
21
+ list: definition('studio.agent.threadViews.list', ['list'], 'GET', '/api/studio/agents/threads/{threadId}/views', 'read'),
22
+ rerun: definition('studio.agent.threadViews.rerun', ['rerun'], 'POST', '/api/studio/agents/views/{viewId}/rerun', 'read'),
23
+ };
24
+ //# sourceMappingURL=definitions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"definitions.js","sourceRoot":"","sources":["../../../src/data/filter-view/definitions.ts"],"names":[],"mappings":"AAGA;;;;;;GAMG;AACH,SAAS,UAAU,CACjB,EAAU,EACV,OAAiB,EACjB,MAAsB,EACtB,YAAoB,EACpB,IAAe;IAEf,OAAO;QACL,WAAW,EAAE;YACX,EAAE,OAAO,EAAE,sBAAsB,EAAE,cAAc,EAAE,EAAE,EAAE;YACvD,EAAE,OAAO,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,IAAI,EAAE,MAAM,EAAE,YAAY,EAAE;SACvF;QACD,OAAO,EAAE,CAAC,MAAM,EAAE,QAAQ,EAAE,GAAG,OAAO,CAAC;QACvC,EAAE;QACF,IAAI;KACL,CAAC;AACJ,CAAC;AAED,MAAM,CAAC,MAAM,6BAA6B,GAAG;IAC3C,GAAG,EAAE,UAAU,CAAC,8BAA8B,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,6CAA6C,EAAE,eAAe,CAAC;IAChI,IAAI,EAAE,UAAU,CAAC,+BAA+B,EAAE,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,6CAA6C,EAAE,MAAM,CAAC;IACzH,KAAK,EAAE,UAAU,CAAC,gCAAgC,EAAE,CAAC,OAAO,CAAC,EAAE,MAAM,EAAE,yCAAyC,EAAE,MAAM,CAAC;CACjH,CAAC"}
@@ -5870,6 +5870,301 @@
5870
5870
  ],
5871
5871
  "strict": true
5872
5872
  },
5873
+ "data:filter:list": {
5874
+ "aliases": [],
5875
+ "args": {},
5876
+ "description": "List the filter views recorded against a Thread, newest first.",
5877
+ "enableJsonFlag": false,
5878
+ "flags": {
5879
+ "jq": {
5880
+ "char": "q",
5881
+ "hasDynamicHelp": false,
5882
+ "multiple": false,
5883
+ "name": "jq",
5884
+ "summary": "Filter the JSON result with a jq expression",
5885
+ "type": "option"
5886
+ },
5887
+ "limit": {
5888
+ "default": 50,
5889
+ "hasDynamicHelp": false,
5890
+ "multiple": false,
5891
+ "name": "limit",
5892
+ "summary": "Maximum number of views to return",
5893
+ "type": "option"
5894
+ },
5895
+ "output": {
5896
+ "default": "json",
5897
+ "hasDynamicHelp": false,
5898
+ "multiple": false,
5899
+ "name": "output",
5900
+ "options": [
5901
+ "json",
5902
+ "pretty",
5903
+ "table",
5904
+ "ndjson",
5905
+ "csv",
5906
+ "text"
5907
+ ],
5908
+ "summary": "Output format",
5909
+ "type": "option"
5910
+ },
5911
+ "subscription": {
5912
+ "hasDynamicHelp": false,
5913
+ "multiple": false,
5914
+ "name": "subscription",
5915
+ "summary": "Subscription name",
5916
+ "type": "option"
5917
+ },
5918
+ "team": {
5919
+ "hasDynamicHelp": false,
5920
+ "multiple": false,
5921
+ "name": "team",
5922
+ "summary": "Team context",
5923
+ "type": "option"
5924
+ },
5925
+ "thread": {
5926
+ "hasDynamicHelp": false,
5927
+ "multiple": false,
5928
+ "name": "thread",
5929
+ "required": true,
5930
+ "summary": "Thread ID",
5931
+ "type": "option"
5932
+ },
5933
+ "yes": {
5934
+ "allowNo": false,
5935
+ "char": "y",
5936
+ "name": "yes",
5937
+ "summary": "Confirm destructive or privileged operations",
5938
+ "type": "boolean"
5939
+ }
5940
+ },
5941
+ "hasDynamicHelp": false,
5942
+ "hiddenAliases": [],
5943
+ "id": "data:filter:list",
5944
+ "isESM": true,
5945
+ "pluginAlias": "@inf-monkeys-tech/monkeys-cli",
5946
+ "pluginName": "@inf-monkeys-tech/monkeys-cli",
5947
+ "pluginType": "core",
5948
+ "relativePath": [
5949
+ "dist",
5950
+ "commands",
5951
+ "data",
5952
+ "filter",
5953
+ "list.js"
5954
+ ],
5955
+ "strict": true
5956
+ },
5957
+ "data:filter:rerun": {
5958
+ "aliases": [],
5959
+ "args": {
5960
+ "viewId": {
5961
+ "description": "Filter view ID",
5962
+ "name": "viewId",
5963
+ "required": true
5964
+ }
5965
+ },
5966
+ "description": "Re-run a stored filter view against current data.",
5967
+ "enableJsonFlag": false,
5968
+ "flags": {
5969
+ "jq": {
5970
+ "char": "q",
5971
+ "hasDynamicHelp": false,
5972
+ "multiple": false,
5973
+ "name": "jq",
5974
+ "summary": "Filter the JSON result with a jq expression",
5975
+ "type": "option"
5976
+ },
5977
+ "limit": {
5978
+ "hasDynamicHelp": false,
5979
+ "multiple": false,
5980
+ "name": "limit",
5981
+ "summary": "Return at most this many rows",
5982
+ "type": "option"
5983
+ },
5984
+ "output": {
5985
+ "default": "json",
5986
+ "hasDynamicHelp": false,
5987
+ "multiple": false,
5988
+ "name": "output",
5989
+ "options": [
5990
+ "json",
5991
+ "pretty",
5992
+ "table",
5993
+ "ndjson",
5994
+ "csv",
5995
+ "text"
5996
+ ],
5997
+ "summary": "Output format",
5998
+ "type": "option"
5999
+ },
6000
+ "subscription": {
6001
+ "hasDynamicHelp": false,
6002
+ "multiple": false,
6003
+ "name": "subscription",
6004
+ "summary": "Subscription name",
6005
+ "type": "option"
6006
+ },
6007
+ "team": {
6008
+ "hasDynamicHelp": false,
6009
+ "multiple": false,
6010
+ "name": "team",
6011
+ "summary": "Team context",
6012
+ "type": "option"
6013
+ },
6014
+ "yes": {
6015
+ "allowNo": false,
6016
+ "char": "y",
6017
+ "name": "yes",
6018
+ "summary": "Confirm destructive or privileged operations",
6019
+ "type": "boolean"
6020
+ }
6021
+ },
6022
+ "hasDynamicHelp": false,
6023
+ "hiddenAliases": [],
6024
+ "id": "data:filter:rerun",
6025
+ "isESM": true,
6026
+ "pluginAlias": "@inf-monkeys-tech/monkeys-cli",
6027
+ "pluginName": "@inf-monkeys-tech/monkeys-cli",
6028
+ "pluginType": "core",
6029
+ "relativePath": [
6030
+ "dist",
6031
+ "commands",
6032
+ "data",
6033
+ "filter",
6034
+ "rerun.js"
6035
+ ],
6036
+ "strict": true
6037
+ },
6038
+ "data:filter:run": {
6039
+ "aliases": [],
6040
+ "args": {},
6041
+ "description": "Run a filter-view schema against an Ontology, record the view, and return the matching rows.",
6042
+ "enableJsonFlag": false,
6043
+ "flags": {
6044
+ "jq": {
6045
+ "char": "q",
6046
+ "hasDynamicHelp": false,
6047
+ "multiple": false,
6048
+ "name": "jq",
6049
+ "summary": "Filter the JSON result with a jq expression",
6050
+ "type": "option"
6051
+ },
6052
+ "limit": {
6053
+ "hasDynamicHelp": false,
6054
+ "multiple": false,
6055
+ "name": "limit",
6056
+ "summary": "Return at most this many rows (the schema limit still applies)",
6057
+ "type": "option"
6058
+ },
6059
+ "message": {
6060
+ "hasDynamicHelp": false,
6061
+ "multiple": false,
6062
+ "name": "message",
6063
+ "summary": "Message that produced the view",
6064
+ "type": "option"
6065
+ },
6066
+ "no-persist": {
6067
+ "allowNo": false,
6068
+ "name": "no-persist",
6069
+ "summary": "Execute without recording the view",
6070
+ "type": "boolean"
6071
+ },
6072
+ "output": {
6073
+ "default": "json",
6074
+ "hasDynamicHelp": false,
6075
+ "multiple": false,
6076
+ "name": "output",
6077
+ "options": [
6078
+ "json",
6079
+ "pretty",
6080
+ "table",
6081
+ "ndjson",
6082
+ "csv",
6083
+ "text"
6084
+ ],
6085
+ "summary": "Output format",
6086
+ "type": "option"
6087
+ },
6088
+ "run": {
6089
+ "hasDynamicHelp": false,
6090
+ "multiple": false,
6091
+ "name": "run",
6092
+ "summary": "Run ID the view belongs to",
6093
+ "type": "option"
6094
+ },
6095
+ "schema-file": {
6096
+ "exclusive": [
6097
+ "schema-json"
6098
+ ],
6099
+ "hasDynamicHelp": false,
6100
+ "multiple": false,
6101
+ "name": "schema-file",
6102
+ "summary": "Filter-view schema JSON file",
6103
+ "type": "option"
6104
+ },
6105
+ "schema-json": {
6106
+ "exclusive": [
6107
+ "schema-json"
6108
+ ],
6109
+ "hasDynamicHelp": false,
6110
+ "multiple": false,
6111
+ "name": "schema-json",
6112
+ "summary": "Filter-view schema JSON Object",
6113
+ "type": "option"
6114
+ },
6115
+ "subscription": {
6116
+ "hasDynamicHelp": false,
6117
+ "multiple": false,
6118
+ "name": "subscription",
6119
+ "summary": "Subscription name",
6120
+ "type": "option"
6121
+ },
6122
+ "team": {
6123
+ "hasDynamicHelp": false,
6124
+ "multiple": false,
6125
+ "name": "team",
6126
+ "summary": "Team context; required when the Subscription has no default Team",
6127
+ "type": "option"
6128
+ },
6129
+ "thread": {
6130
+ "hasDynamicHelp": false,
6131
+ "multiple": false,
6132
+ "name": "thread",
6133
+ "required": true,
6134
+ "summary": "Thread the view belongs to",
6135
+ "type": "option"
6136
+ },
6137
+ "title": {
6138
+ "hasDynamicHelp": false,
6139
+ "multiple": false,
6140
+ "name": "title",
6141
+ "summary": "View title shown in the drawer",
6142
+ "type": "option"
6143
+ },
6144
+ "yes": {
6145
+ "allowNo": false,
6146
+ "char": "y",
6147
+ "name": "yes",
6148
+ "summary": "Confirm destructive or privileged operations",
6149
+ "type": "boolean"
6150
+ }
6151
+ },
6152
+ "hasDynamicHelp": false,
6153
+ "hiddenAliases": [],
6154
+ "id": "data:filter:run",
6155
+ "isESM": true,
6156
+ "pluginAlias": "@inf-monkeys-tech/monkeys-cli",
6157
+ "pluginName": "@inf-monkeys-tech/monkeys-cli",
6158
+ "pluginType": "core",
6159
+ "relativePath": [
6160
+ "dist",
6161
+ "commands",
6162
+ "data",
6163
+ "filter",
6164
+ "run.js"
6165
+ ],
6166
+ "strict": true
6167
+ },
5873
6168
  "data:ontology:create": {
5874
6169
  "aliases": [],
5875
6170
  "args": {},
@@ -19583,5 +19878,5 @@
19583
19878
  "strict": true
19584
19879
  }
19585
19880
  },
19586
- "version": "0.12.29"
19881
+ "version": "0.12.30"
19587
19882
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inf-monkeys-tech/monkeys-cli",
3
- "version": "0.12.29",
3
+ "version": "0.12.30",
4
4
  "packageManager": "bun@1.3.14",
5
5
  "description": "Monkeys command-line client for AI agents, automation, and interactive use",
6
6
  "type": "module",
@@ -150,5 +150,5 @@
150
150
  "publishConfig": {
151
151
  "access": "public"
152
152
  },
153
- "monkeysReleaseCommit": "c3ff80eef1076afb5c1d2f343102ae00684cbf9b"
153
+ "monkeysReleaseCommit": "632d473a7d1bbef25c93cd3b0b227f1dbf5c8bdb"
154
154
  }