@agimon-ai/po-plan 0.0.0-alpha.29 → 0.0.0-alpha.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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
let
|
|
2
|
+
let _agimon_ai_po_core_telemetry = require("@agimon-ai/po-core/telemetry");
|
|
3
3
|
//#region src/services/logSinkTelemetry/index.ts
|
|
4
4
|
const SERVICE_NAME = "po-plan";
|
|
5
5
|
const PACKAGE_NAME = "@agimon-ai/po-plan";
|
|
@@ -16,7 +16,7 @@ const PLAN_EVENT = {
|
|
|
16
16
|
planReviewCompleted: "po_plan.plan_review_completed"
|
|
17
17
|
};
|
|
18
18
|
function createPlanTelemetry(options = {}) {
|
|
19
|
-
const telemetry = (0,
|
|
19
|
+
const telemetry = (0, _agimon_ai_po_core_telemetry.createPoTelemetry)({
|
|
20
20
|
serviceName: SERVICE_NAME,
|
|
21
21
|
packageName: PACKAGE_NAME,
|
|
22
22
|
cwd: options.cwd,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logSinkTelemetry.cjs","names":["createPoTelemetry"],"sources":["../src/services/logSinkTelemetry/index.ts"],"sourcesContent":["import { createPoTelemetry, type PoTelemetry, type PoTelemetryOptions } from '@agimon-ai/po-telemetry';\n\nconst SERVICE_NAME = 'po-plan';\nconst PACKAGE_NAME = '@agimon-ai/po-plan';\n\nexport const PLAN_EVENT = {\n configLoadFailed: 'po_plan.config_load_failed',\n writePlanFailed: 'po_plan.write_plan_failed',\n writePlanTimedOut: 'po_plan.write_plan_timed_out',\n writePlanUnsafePath: 'po_plan.write_plan_unsafe_path',\n modelResolveFailed: 'po_plan.model_resolve_failed',\n modeEnabled: 'po_plan.mode_enabled',\n modeDisabled: 'po_plan.mode_disabled',\n planWritten: 'po_plan.plan_written',\n planPointerFailed: 'po_plan.plan_pointer_failed',\n planReviewCompleted: 'po_plan.plan_review_completed',\n} as const;\n\nexport type PlanEventName = (typeof PLAN_EVENT)[keyof typeof PLAN_EVENT];\nexport type PlanEventAttributes = Record<string, string | number | boolean>;\n\nexport interface PlanTelemetryOptions {\n cwd?: string;\n workspaceRoot?: string;\n env?: NodeJS.ProcessEnv;\n telemetryFactory?: NonNullable<PoTelemetryOptions['telemetryFactory']>;\n warn?: (message: string) => void;\n}\n\nexport interface PlanTelemetry {\n recordError(event: PlanEventName, error: unknown, attributes?: PlanEventAttributes): Promise<void>;\n recordWarning(event: PlanEventName, error: unknown, attributes?: PlanEventAttributes): Promise<void>;\n recordEvent(event: PlanEventName, attributes?: PlanEventAttributes): Promise<void>;\n flush(): Promise<void>;\n shutdown(): Promise<void>;\n}\n\nexport function createPlanTelemetry(options: PlanTelemetryOptions = {}): PlanTelemetry {\n const telemetry: PoTelemetry = createPoTelemetry({\n serviceName: SERVICE_NAME,\n packageName: PACKAGE_NAME,\n cwd: options.cwd,\n workspaceRoot: options.workspaceRoot,\n env: options.env,\n telemetryFactory: options.telemetryFactory,\n warn: options.warn,\n enableLogs: true,\n enableTraces: true,\n });\n return {\n recordError: (event, error, attributes) => telemetry.recordError(event, error, attributes),\n recordWarning: (event, error, attributes) => telemetry.recordWarning(event, error, attributes),\n recordEvent: (event, attributes) => telemetry.recordEvent(event, attributes),\n flush: () => telemetry.flush(),\n shutdown: () => telemetry.shutdown(),\n };\n}\n"],"mappings":";;;AAEA,MAAM,eAAe;AACrB,MAAM,eAAe;AAErB,MAAa,aAAa;CACxB,kBAAkB;CAClB,iBAAiB;CACjB,mBAAmB;CACnB,qBAAqB;CACrB,oBAAoB;CACpB,aAAa;CACb,cAAc;CACd,aAAa;CACb,mBAAmB;CACnB,qBAAqB;AACvB;AAqBA,SAAgB,oBAAoB,UAAgC,CAAC,GAAkB;CACrF,MAAM,aAAA,GAAyBA,
|
|
1
|
+
{"version":3,"file":"logSinkTelemetry.cjs","names":["createPoTelemetry"],"sources":["../src/services/logSinkTelemetry/index.ts"],"sourcesContent":["import { createPoTelemetry, type PoTelemetry, type PoTelemetryOptions } from '@agimon-ai/po-core/telemetry';\n\nconst SERVICE_NAME = 'po-plan';\nconst PACKAGE_NAME = '@agimon-ai/po-plan';\n\nexport const PLAN_EVENT = {\n configLoadFailed: 'po_plan.config_load_failed',\n writePlanFailed: 'po_plan.write_plan_failed',\n writePlanTimedOut: 'po_plan.write_plan_timed_out',\n writePlanUnsafePath: 'po_plan.write_plan_unsafe_path',\n modelResolveFailed: 'po_plan.model_resolve_failed',\n modeEnabled: 'po_plan.mode_enabled',\n modeDisabled: 'po_plan.mode_disabled',\n planWritten: 'po_plan.plan_written',\n planPointerFailed: 'po_plan.plan_pointer_failed',\n planReviewCompleted: 'po_plan.plan_review_completed',\n} as const;\n\nexport type PlanEventName = (typeof PLAN_EVENT)[keyof typeof PLAN_EVENT];\nexport type PlanEventAttributes = Record<string, string | number | boolean>;\n\nexport interface PlanTelemetryOptions {\n cwd?: string;\n workspaceRoot?: string;\n env?: NodeJS.ProcessEnv;\n telemetryFactory?: NonNullable<PoTelemetryOptions['telemetryFactory']>;\n warn?: (message: string) => void;\n}\n\nexport interface PlanTelemetry {\n recordError(event: PlanEventName, error: unknown, attributes?: PlanEventAttributes): Promise<void>;\n recordWarning(event: PlanEventName, error: unknown, attributes?: PlanEventAttributes): Promise<void>;\n recordEvent(event: PlanEventName, attributes?: PlanEventAttributes): Promise<void>;\n flush(): Promise<void>;\n shutdown(): Promise<void>;\n}\n\nexport function createPlanTelemetry(options: PlanTelemetryOptions = {}): PlanTelemetry {\n const telemetry: PoTelemetry = createPoTelemetry({\n serviceName: SERVICE_NAME,\n packageName: PACKAGE_NAME,\n cwd: options.cwd,\n workspaceRoot: options.workspaceRoot,\n env: options.env,\n telemetryFactory: options.telemetryFactory,\n warn: options.warn,\n enableLogs: true,\n enableTraces: true,\n });\n return {\n recordError: (event, error, attributes) => telemetry.recordError(event, error, attributes),\n recordWarning: (event, error, attributes) => telemetry.recordWarning(event, error, attributes),\n recordEvent: (event, attributes) => telemetry.recordEvent(event, attributes),\n flush: () => telemetry.flush(),\n shutdown: () => telemetry.shutdown(),\n };\n}\n"],"mappings":";;;AAEA,MAAM,eAAe;AACrB,MAAM,eAAe;AAErB,MAAa,aAAa;CACxB,kBAAkB;CAClB,iBAAiB;CACjB,mBAAmB;CACnB,qBAAqB;CACrB,oBAAoB;CACpB,aAAa;CACb,cAAc;CACd,aAAa;CACb,mBAAmB;CACnB,qBAAqB;AACvB;AAqBA,SAAgB,oBAAoB,UAAgC,CAAC,GAAkB;CACrF,MAAM,aAAA,GAAyBA,6BAAAA,kBAAAA,CAAkB;EAC/C,aAAa;EACb,aAAa;EACb,KAAK,QAAQ;EACb,eAAe,QAAQ;EACvB,KAAK,QAAQ;EACb,kBAAkB,QAAQ;EAC1B,MAAM,QAAQ;EACd,YAAY;EACZ,cAAc;CAChB,CAAC;CACD,OAAO;EACL,cAAc,OAAO,OAAO,eAAe,UAAU,YAAY,OAAO,OAAO,UAAU;EACzF,gBAAgB,OAAO,OAAO,eAAe,UAAU,cAAc,OAAO,OAAO,UAAU;EAC7F,cAAc,OAAO,eAAe,UAAU,YAAY,OAAO,UAAU;EAC3E,aAAa,UAAU,MAAM;EAC7B,gBAAgB,UAAU,SAAS;CACrC;AACF"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PoTelemetryOptions } from "@agimon-ai/po-telemetry";
|
|
1
|
+
import { PoTelemetryOptions } from "@agimon-ai/po-core/telemetry";
|
|
2
2
|
//#region src/services/logSinkTelemetry/index.d.ts
|
|
3
3
|
export declare const PLAN_EVENT: {
|
|
4
4
|
readonly configLoadFailed: 'po_plan.config_load_failed';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logSinkTelemetry.mjs","names":[],"sources":["../src/services/logSinkTelemetry/index.ts"],"sourcesContent":["import { createPoTelemetry, type PoTelemetry, type PoTelemetryOptions } from '@agimon-ai/po-telemetry';\n\nconst SERVICE_NAME = 'po-plan';\nconst PACKAGE_NAME = '@agimon-ai/po-plan';\n\nexport const PLAN_EVENT = {\n configLoadFailed: 'po_plan.config_load_failed',\n writePlanFailed: 'po_plan.write_plan_failed',\n writePlanTimedOut: 'po_plan.write_plan_timed_out',\n writePlanUnsafePath: 'po_plan.write_plan_unsafe_path',\n modelResolveFailed: 'po_plan.model_resolve_failed',\n modeEnabled: 'po_plan.mode_enabled',\n modeDisabled: 'po_plan.mode_disabled',\n planWritten: 'po_plan.plan_written',\n planPointerFailed: 'po_plan.plan_pointer_failed',\n planReviewCompleted: 'po_plan.plan_review_completed',\n} as const;\n\nexport type PlanEventName = (typeof PLAN_EVENT)[keyof typeof PLAN_EVENT];\nexport type PlanEventAttributes = Record<string, string | number | boolean>;\n\nexport interface PlanTelemetryOptions {\n cwd?: string;\n workspaceRoot?: string;\n env?: NodeJS.ProcessEnv;\n telemetryFactory?: NonNullable<PoTelemetryOptions['telemetryFactory']>;\n warn?: (message: string) => void;\n}\n\nexport interface PlanTelemetry {\n recordError(event: PlanEventName, error: unknown, attributes?: PlanEventAttributes): Promise<void>;\n recordWarning(event: PlanEventName, error: unknown, attributes?: PlanEventAttributes): Promise<void>;\n recordEvent(event: PlanEventName, attributes?: PlanEventAttributes): Promise<void>;\n flush(): Promise<void>;\n shutdown(): Promise<void>;\n}\n\nexport function createPlanTelemetry(options: PlanTelemetryOptions = {}): PlanTelemetry {\n const telemetry: PoTelemetry = createPoTelemetry({\n serviceName: SERVICE_NAME,\n packageName: PACKAGE_NAME,\n cwd: options.cwd,\n workspaceRoot: options.workspaceRoot,\n env: options.env,\n telemetryFactory: options.telemetryFactory,\n warn: options.warn,\n enableLogs: true,\n enableTraces: true,\n });\n return {\n recordError: (event, error, attributes) => telemetry.recordError(event, error, attributes),\n recordWarning: (event, error, attributes) => telemetry.recordWarning(event, error, attributes),\n recordEvent: (event, attributes) => telemetry.recordEvent(event, attributes),\n flush: () => telemetry.flush(),\n shutdown: () => telemetry.shutdown(),\n };\n}\n"],"mappings":";;AAEA,MAAM,eAAe;AACrB,MAAM,eAAe;AAErB,MAAa,aAAa;CACxB,kBAAkB;CAClB,iBAAiB;CACjB,mBAAmB;CACnB,qBAAqB;CACrB,oBAAoB;CACpB,aAAa;CACb,cAAc;CACd,aAAa;CACb,mBAAmB;CACnB,qBAAqB;AACvB;AAqBA,SAAgB,oBAAoB,UAAgC,CAAC,GAAkB;CACrF,MAAM,YAAyB,kBAAkB;EAC/C,aAAa;EACb,aAAa;EACb,KAAK,QAAQ;EACb,eAAe,QAAQ;EACvB,KAAK,QAAQ;EACb,kBAAkB,QAAQ;EAC1B,MAAM,QAAQ;EACd,YAAY;EACZ,cAAc;CAChB,CAAC;CACD,OAAO;EACL,cAAc,OAAO,OAAO,eAAe,UAAU,YAAY,OAAO,OAAO,UAAU;EACzF,gBAAgB,OAAO,OAAO,eAAe,UAAU,cAAc,OAAO,OAAO,UAAU;EAC7F,cAAc,OAAO,eAAe,UAAU,YAAY,OAAO,UAAU;EAC3E,aAAa,UAAU,MAAM;EAC7B,gBAAgB,UAAU,SAAS;CACrC;AACF"}
|
|
1
|
+
{"version":3,"file":"logSinkTelemetry.mjs","names":[],"sources":["../src/services/logSinkTelemetry/index.ts"],"sourcesContent":["import { createPoTelemetry, type PoTelemetry, type PoTelemetryOptions } from '@agimon-ai/po-core/telemetry';\n\nconst SERVICE_NAME = 'po-plan';\nconst PACKAGE_NAME = '@agimon-ai/po-plan';\n\nexport const PLAN_EVENT = {\n configLoadFailed: 'po_plan.config_load_failed',\n writePlanFailed: 'po_plan.write_plan_failed',\n writePlanTimedOut: 'po_plan.write_plan_timed_out',\n writePlanUnsafePath: 'po_plan.write_plan_unsafe_path',\n modelResolveFailed: 'po_plan.model_resolve_failed',\n modeEnabled: 'po_plan.mode_enabled',\n modeDisabled: 'po_plan.mode_disabled',\n planWritten: 'po_plan.plan_written',\n planPointerFailed: 'po_plan.plan_pointer_failed',\n planReviewCompleted: 'po_plan.plan_review_completed',\n} as const;\n\nexport type PlanEventName = (typeof PLAN_EVENT)[keyof typeof PLAN_EVENT];\nexport type PlanEventAttributes = Record<string, string | number | boolean>;\n\nexport interface PlanTelemetryOptions {\n cwd?: string;\n workspaceRoot?: string;\n env?: NodeJS.ProcessEnv;\n telemetryFactory?: NonNullable<PoTelemetryOptions['telemetryFactory']>;\n warn?: (message: string) => void;\n}\n\nexport interface PlanTelemetry {\n recordError(event: PlanEventName, error: unknown, attributes?: PlanEventAttributes): Promise<void>;\n recordWarning(event: PlanEventName, error: unknown, attributes?: PlanEventAttributes): Promise<void>;\n recordEvent(event: PlanEventName, attributes?: PlanEventAttributes): Promise<void>;\n flush(): Promise<void>;\n shutdown(): Promise<void>;\n}\n\nexport function createPlanTelemetry(options: PlanTelemetryOptions = {}): PlanTelemetry {\n const telemetry: PoTelemetry = createPoTelemetry({\n serviceName: SERVICE_NAME,\n packageName: PACKAGE_NAME,\n cwd: options.cwd,\n workspaceRoot: options.workspaceRoot,\n env: options.env,\n telemetryFactory: options.telemetryFactory,\n warn: options.warn,\n enableLogs: true,\n enableTraces: true,\n });\n return {\n recordError: (event, error, attributes) => telemetry.recordError(event, error, attributes),\n recordWarning: (event, error, attributes) => telemetry.recordWarning(event, error, attributes),\n recordEvent: (event, attributes) => telemetry.recordEvent(event, attributes),\n flush: () => telemetry.flush(),\n shutdown: () => telemetry.shutdown(),\n };\n}\n"],"mappings":";;AAEA,MAAM,eAAe;AACrB,MAAM,eAAe;AAErB,MAAa,aAAa;CACxB,kBAAkB;CAClB,iBAAiB;CACjB,mBAAmB;CACnB,qBAAqB;CACrB,oBAAoB;CACpB,aAAa;CACb,cAAc;CACd,aAAa;CACb,mBAAmB;CACnB,qBAAqB;AACvB;AAqBA,SAAgB,oBAAoB,UAAgC,CAAC,GAAkB;CACrF,MAAM,YAAyB,kBAAkB;EAC/C,aAAa;EACb,aAAa;EACb,KAAK,QAAQ;EACb,eAAe,QAAQ;EACvB,KAAK,QAAQ;EACb,kBAAkB,QAAQ;EAC1B,MAAM,QAAQ;EACd,YAAY;EACZ,cAAc;CAChB,CAAC;CACD,OAAO;EACL,cAAc,OAAO,OAAO,eAAe,UAAU,YAAY,OAAO,OAAO,UAAU;EACzF,gBAAgB,OAAO,OAAO,eAAe,UAAU,cAAc,OAAO,OAAO,UAAU;EAC7F,cAAc,OAAO,eAAe,UAAU,YAAY,OAAO,UAAU;EAC3E,aAAa,UAAU,MAAM;EAC7B,gBAAgB,UAAU,SAAS;CACrC;AACF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agimon-ai/po-plan",
|
|
3
|
-
"version": "0.0.0-alpha.
|
|
3
|
+
"version": "0.0.0-alpha.30",
|
|
4
4
|
"description": "Reviewable Pi planning mode that removes file-editing tools and persists implementation plans.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ai",
|
|
@@ -89,19 +89,18 @@
|
|
|
89
89
|
"registry": "https://registry.npmjs.org/"
|
|
90
90
|
},
|
|
91
91
|
"dependencies": {
|
|
92
|
-
"@agimon-ai/po-config": "0.0.0-alpha.
|
|
93
|
-
"@agimon-ai/po-core": "0.0.0-alpha.
|
|
94
|
-
"@agimon-ai/po-minor-mode": "0.0.0-alpha.
|
|
95
|
-
"@agimon-ai/po-
|
|
96
|
-
"@agimon-ai/po-web-
|
|
97
|
-
"@agimon-ai/po-web-security": "0.0.0-alpha.29",
|
|
92
|
+
"@agimon-ai/po-config": "0.0.0-alpha.30",
|
|
93
|
+
"@agimon-ai/po-core": "0.0.0-alpha.30",
|
|
94
|
+
"@agimon-ai/po-minor-mode": "0.0.0-alpha.30",
|
|
95
|
+
"@agimon-ai/po-web-components": "0.0.0-alpha.30",
|
|
96
|
+
"@agimon-ai/po-web-security": "0.0.0-alpha.30",
|
|
98
97
|
"@deepseek-ai/cordis": "4.0.5",
|
|
99
98
|
"hono": "4.13.13",
|
|
100
99
|
"typebox": "1.3.37"
|
|
101
100
|
},
|
|
102
101
|
"devDependencies": {
|
|
103
|
-
"@agimon-ai/po-build": "0.0.0-alpha.
|
|
104
|
-
"@agimon-ai/po-native-components": "0.0.0-alpha.
|
|
102
|
+
"@agimon-ai/po-build": "0.0.0-alpha.30",
|
|
103
|
+
"@agimon-ai/po-native-components": "0.0.0-alpha.30",
|
|
105
104
|
"@earendil-works/pi-coding-agent": "1.3.0",
|
|
106
105
|
"@tanstack/react-store": "0.11.2",
|
|
107
106
|
"@tanstack/store": "0.11.2",
|
|
@@ -117,7 +116,7 @@
|
|
|
117
116
|
"vitest": "5.0.4"
|
|
118
117
|
},
|
|
119
118
|
"peerDependencies": {
|
|
120
|
-
"@agimon-ai/po-native-components": "0.0.0-alpha.
|
|
119
|
+
"@agimon-ai/po-native-components": "0.0.0-alpha.30",
|
|
121
120
|
"@earendil-works/pi-coding-agent": "1.3.0",
|
|
122
121
|
"react-native": "0.86.3",
|
|
123
122
|
"react-native-unistyles": "^3.5.3"
|